<#include "../../head.ftl">
<div class="page_title">客户信息管理 > 客户信息 > 联系人 > 编辑联系人</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="back();">返回</button>
    <button class="common_button" onclick="document.forms[0].submit();">保存</button>
</div>
<form action="${base}/contact/save" method="post">
	<input type="hidden" name="id" value="${contact.id}">
    <input type="hidden" name="customer.id" value="${contact.customer.id}">
    <table class="query_form_table">
        <tr>
            <th>姓名</th>
            <td><input type="text" name="name" value="${contact.name!''}"/><span class="red_star">*</span></td>
            <th>性别</th>
            <td>
				<#if contact.gender=='男'>
                    <input type="radio" name="gender" checked value="男"/>男
                    <input type="radio" name="gender" value="女"/>女
				<#else>
					<input type="radio" name="gender"  value="男"/>男
                    <input type="radio" name="gender" checked value="女"/>女
				</#if>

            </td>
        </tr>
        <tr>
            <th>职位</th>
            <td><input type="text" name="post" value="${contact.post!''}"/><span class="red_star">*</span></td>
            <th>办公电话</th>
            <td><input type="text" name="officephone" value="${contact.officephone!''}"/><span class="red_star">*</span></td>
        </tr>
        <tr>
            <th>手机</th>
            <td><input type="text" name="telephone" value="${contact.telephone!''}" size="20"/></td>
            <th>备注</th>
            <td><input type="text" name="remarks" value="${contact.remarks!''}" size="20" /></td>
        </tr>
    </table>
</form>
</body>
</html>